version: "3.7"

networks:
  backend-network:
    driver: bridge
    ipam:
      config:
        - subnet: ${BACKEND_SUBNET}

services:
  live-build:
    container_name: live-build
    build:
      context: ./live-build
      dockerfile: Dockerfile
    working_dir: /root
    privileged: true
    tty: true
    volumes:
      - ${HOST_CODE_PATH}:/root
    networks:
      backend-network:
        ipv4_address: ${LB_IP}
